package com.hll.api.exception;

import com.hll.api.config.web.RespMessage;

/**
 * @author 何龙
 * @create 2019-06-02 10:46
 */
public class MyException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private RespMessage.Status status;

    public MyException(String err) {
        this( RespMessage.Status.ERROR, err );
    }

    public MyException(RespMessage.Status status, String err) {
        super( err );
        this.status = status;
    }

    public RespMessage.Status getStatus() {
        return status;
    }

    public void setStatus(RespMessage.Status status) {
        this.status = status;
    }
}
